#ifndef MEASURE_H//Calibration
#define MEASURE_H

#undef EXT
#ifdef CALIBRATION_C
#define EXT
#else
#define EXT extern
#endif

#define SET_STABLE_LED(X)   Control_Led(10, X)
#define SET_UNITT_LED(X)    Control_Led(9, X)
#define SET_COM_LED(X)      Control_Led(8, X)
#define SET_CH1_LED(X)		Control_Led(5, X)
#define SET_CH2_LED(X)		Control_Led(4, X)
#define SET_CH3_LED(X)		Control_Led(3, X)
#define SET_CH4_LED(X)		Control_Led(2, X)
#define SET_CH5_LED(X)	    Control_Led(1, X)
#define SET_CH6_LED(X)		Control_Led(0, X)

#define K_RATE 100000//((weightPara.sysPara.unit EQ 0)?1000:1000000) //1000
#define CALIBRATION_FLAG 0x8A

EXT void selectADChanel(INT8U chNo);
EXT INT8U zeroLoadCal(void);
EXT INT8U loadCal(INT32S Data);
EXT INT8U highLoadCal(INT32S Data);
EXT INT8U lowLoadCal(INT32S Data);
EXT void gatherWeightData(void);
EXT void setChanelWarnLED(INT8U chNo, INT8U	status);
#endif
